﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL.SupplyDemand
{
	/// <summary>
	/// 需求信息实体类
	/// </summary>
	/// <![CDATA[2014-9-3 18:42:30]]>
	public class Entity : EntityBase
	{
		#region 属性
		public int nType = 0;
		public string strName = "";
		public string strShowDate = "";
		public int nUserID = 0;
		public int nDepartmentID = 0;
		public int nFileContentID = 0;
		public string strDateTime = "";

		//private string strType = "";
		private Config clsConfig = new Config();
		#endregion 属性

		#region Get、Set属性
		public int Type
		{
			get { return nType; }
			set { nType = value; }
		}
		public string Name
		{
			get { return strName; }
			set { strName = value.Trim(); }
		}
		public string ShowDate
		{
			get { return strShowDate; }
			set { strShowDate = value.Trim(); }
		}
		public int UserID
		{
			get { return nUserID; }
			set { nUserID = value; }
		}
		public int DepartmentID
		{
			get { return nDepartmentID; }
			set { nDepartmentID = value; }
		}
		public int FileContentID
		{
			get { return nFileContentID; }
			set { nFileContentID = value; }
		}
		public string DateTime
		{
			get { return strDateTime; }
			set { strDateTime = value.Trim(); }
		}

		public string TypeName
		{
			get
			{
				return clsConfig.strArrSupplyDemandType[nType];
			}
		}
		#endregion Get、Set属性

		#region 构造函数
		/// <summary>
		/// 实体类构造函数
		/// </summary>
		/// <![CDATA[2014-9-3 18:42:30]]>
		public Entity()
			: base()
		{
		}
		#endregion 构造函数
	}
}
